import React from 'react'
import bindthis from 'autobind-decorator'
import './Home2View.scss'
import RabbitImage from '../assets/Rabbit.png'
import http from "../../../common/http"
import Button from "@material-ui/core/es/Button/Button";

@bindthis
export default class Home2View extends React.Component{

	state = {
		test: 1
	}

	query() {
		http.get("dir/list", {a: 1}, {b: 2})
	}

	render(){
		return (
			<div>
				<div>{this.state.test}</div>
				<h4>This is a rabbit, because Redux!</h4>
				<img alt='' className='duck' src={RabbitImage} />
				<Button onClick={this.query} variant="contained" color="primary">Default</Button>
			</div>

		)
	}
}
